<style type="text/css">
  .ellipText {
    display: inherit;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }
</style>
<div id="content">
  <div class="row s_page_title">
    <sa-big-breadcrumbs [items]="['日志信息管理', '终端到期日志']" icon="fa fa-tag"
      class="col-xs-12 col-sm-7 col-md-7 col-lg-4"></sa-big-breadcrumbs>
  </div>
  <sa-widgets-grid>
    <div class="s_table">
      <div sa-widget [editbutton]="false" color="darken" class="clearfix">
        <header>
          <span class="widget-icon"><i class="fa fa-table"></i></span>
          <h2>终端到期日志</h2>
        </header>
        <div>
          <div class="widget-body no-padding">
            <div class="page-header clearfix s_table_opreation">
              <div class="left page-header-btn">

                <sa-company-tree-car companyTreeId="companyTree"
                  (companySelected)="companySelected($event)"></sa-company-tree-car>

                <div class="top_module">
                  <span class="module_text">时间类型</span>
                  <select name="dateType" class="module_inp" [(ngModel)]="dateType">
                    <option value="2">创建时间</option>
                    <option value="1">下发时间</option>
                    <option value="3">更新时间</option>
                    <option value="4">车辆到期时间</option>
                  </select>
                </div>



                <div class="selectDate top_module">
                  <table-select-date (outerTime)="getSelectTableTime($event)"></table-select-date>
                </div>
                <button type="button" class="btn btn-primary" (click)="table_search()">查询</button>
              </div>
              <div class="right top-search" style="width: 240px"></div>
            </div>
            <div class="table_scroll">
              <table
                class="display dataTables responsive table table-striped table-bordered table-hover dataTable s_h5_table">
                <thead>
                  <tr>
                    <th>设备ID</th>
                    <th>车牌号</th>
                    <th>公司名称</th>
                    <th>公司ID</th>
                    <th>指令下发时间</th>
                    <th>车辆到期时间</th>
                    <th>创建时间</th>
                    <th>更新时间</th>
                  </tr>
                </thead>
                <tbody>
                  <tr *ngFor="let row of tableData">
                    <td>{{ row.deviceId }}</td>
                    <td>{{ row.carNumber }}</td>
                    <td>{{ row.companyName }}</td>
                    <td>{{ row.companyId }}</td>
                    <td>{{ row.sendTime }}</td>
                    <td>{{ row.endServiceTime }}</td>
                    <td>{{ row.createTime }}</td>
                    <td>{{ row.updateTime }}</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="table-fix clearfix">
              <paginator [totalRecords]="totalCount" [rows]="pageSize" [currentPage]="curPage - 1"
                (onPageChange)="paginate($event)"></paginator>
              <button type="button" class="btn default refresh_btn" (click)="refresh()">
                <i class="fa fa-refresh"></i>
              </button>
            </div>
          </div>
        </div>
      </div>
    </div>
  </sa-widgets-grid>
</div>